package com.cndym.service.impl;


import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cndym.bean.Cooperation;
import com.cndym.dao.ICooperationDao;
import com.cndym.service.ICooperationService;

@Service
public class CooperationServiceImpl implements ICooperationService {
    @Autowired
    private ICooperationDao cooperationDao;

    public Cooperation getCooperationBySid(String sid) {
        return cooperationDao.getCooperationBySid(sid);
    }

    public Cooperation getCooperationById(Long id) {
        return cooperationDao.getCooperationById(id);
    }

    public boolean doUpdateStauts(String sid, Integer status) {

        return cooperationDao.doUpdateStauts(sid, status);
    }

    public List<Cooperation> getCooperation(Cooperation cooperation) {
        return cooperationDao.getCooperation(cooperation, null);
    }

    @Override
    public List<Cooperation> getCooperation(Cooperation cooperation, String mask) {
        return cooperationDao.getCooperation(cooperation, mask);
    }

    public Map getLastRegisterCooperation() {
        return cooperationDao.getLastRegisterCooperation();
    }

    @Override
    public String getMaxCooperationSidOfMask(String mask) {
        return cooperationDao.getMaxCooperationSidOfMask(mask);
    }

    public ICooperationDao getCooperationDao() {
        return cooperationDao;
    }

    public void setCooperationDao(ICooperationDao cooperationDao) {
        this.cooperationDao = cooperationDao;
    }

	@Override
	public boolean update(Cooperation t) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean merge(Cooperation t) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean delete(Cooperation t) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean save(Cooperation t) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Cooperation findById(Class<Cooperation> c, Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Cooperation> find(String select, Object[] paramValues) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean saveAllObject(List list) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List findSqlList(String select) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void updateColumn(Cooperation t) {
		// TODO Auto-generated method stub
		
	}

}